package com.huixuebao.api.service.rpc;

import com.huixuebao.api.dto.CategoryDTO;
import com.huixuebao.common.bean.ApiResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "settle")
public interface CategoryService {

    @GetMapping("/category/listAllCategoryByPid")
    ApiResult<List<CategoryDTO>> listAllCategoryByPid(@RequestParam("pid") String pid);


    @GetMapping("/category/categoryTree")
    ApiResult<List<CategoryDTO>> categoryTree();

}
